#include<stdio.h>
#include<unistd.h>

int main()
{
    char arr[101] = {0};
    const char* ar = "//--||\\\\--";
    int i = 0;
    for (i = 0; i < 100; i++)
    {
        arr[i] = '=';
        printf("[%-100s][%d%%]%c\r",arr, i+1, ar[i%10]);
        fflush(stdout);
        usleep(100000);
    }
    printf("\n");
    return 0;
}
